ig.module(
	'game.entities.base.baseButton'
)
.requires(
	'impact.image',
        'game.entities.base.entityBase'   
)

.defines(function()
{
    EntityBaseButton = EntityEntityBase.extend(
    {    
        size: {x:80, y:25},
	collides: ig.Entity.COLLIDES.PASSIVE,
        zIndex: 100,
        
        normalButton: new ig.Image("media/images/play.png"),
        overButton: new ig.Image("media/images/playOver.png"),
        
        init: function(x, y, settings)
        {
	    this.parent(x, y, settings);
        },
        
        draw: function()
        {
            this.parent();
            
            if (this.wasClicked() == true)
            {
                this.onClick();
            }            
            
            if (this.isMouseOver())
            {
                this.overButton.draw(this.pos.x, this.pos.y);
            }
            else
            {
                this.normalButton.draw(this.pos.x, this.pos.y);                
            }
        },
        
        onClick: function()
        {
            
        }
    });
});